shut (someone) in

Translations
запереть (кого-то) внутри
She accidentally shut the cat in the room.
Она случайно заперла кота в комнате.
Definitions
To confine or restrict someone within a space, preventing them from leaving or accessing the outside.